/*$Id$*/
package com.leetech.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;



public class Examples implements EntryPoint {


    // Static initialization-------------------------------------------

    // Instance variables----------------------------------------------
    // Constructors----------------------------------------------------
    // Methods---------------------------------------------------------
    
    public void onModuleLoad() {
        WidgetController cont = new WidgetController();
        WidgetServiceAsync serv = WidgetController.openService(
                GWT.getModuleBaseURL()+"/widgetService");
        ListBox box = new ListBox();
        LabeledWidget lab = new LabeledWidget(box);
        lab.setLabel("bad label!");
        TextBox textBox = new TextBox();
        LabeledWidget textLab = new LabeledWidget(textBox);
        cont.registerWidget(textLab);
        cont.registerWidget(lab);
        cont.syncWidgets(serv);
        VerticalPanel pan = new VerticalPanel();
        pan.add(lab);
        pan.add(textLab);
        RootPanel.get().add(pan);
        
    }
    // Inner Classes --------------------------------------------------
}

